<?php
/**
 * DotHerbert
 *
 * @package    UnitTest
 * @copyright  2009 extreme-programmers
 * @license    http://dotherbert.extreme-programmers.com/license   BSD License
 * @version    $Id: TestHelper.php 102 2009-05-13 17:19:29Z johannes.trink@extreme-programmers.com $
 */

namespace dotherbert\unittest;
use dotherbert\core\stub;

/**
 * Test helper
 *
 * @package    UnitTest
 * @author     Johannes Trink <johannes.trink@extreme-programmers.com>
 */
class TestHelper
{
    /**
     * Get test file contents
     *
     * @param  string $file
     * @param  string $filename
     * @return string
     */
    public static function getTestFileContents($file, $filename)
    {
        $path = dirname($file) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR
              . $filename;

        return stub\FilesystemStub::getInstance()->fileGetContents($path);
    }
}